import Stestservice from "./service/testservice.ts";
import Ctest from "./controller/test.ts";import Ctesttwo from "./controller/testtwo.ts";
import Context from "./context.ts";
import {buildRouter} from "./core.ts";

let ctx =new Context();
ctx.addService("testservice",new Stestservice(ctx));
ctx.addRouter(buildRouter("test",Ctest));
ctx.addController("test",new Ctest(ctx));
ctx.addRouter(buildRouter("testtwo",Ctesttwo));
ctx.addController("testtwo",new Ctesttwo(ctx));
ctx.buildUrlPatterns();
export { ctx };